package main

import (
	"gitee.com/tietang/terrace-go/v2/base"
	"gitee.com/tietang/terrace-go/v2/boot"
	_ "gitee.com/tietang/terrace-go/v2/example/moni"
	log "github.com/sirupsen/logrus"
	"github.com/tietang/props/v3/kvs"
)

func main() {

	//获取程序运行文件所在的路径
	file := kvs.GetCurrentFilePath("config.ini", 2)
	log.Infof("通过ini配置文件启动：%s", file)

	base.SortStarters()
	app := boot.NewByFile(file)
	app.RapidStart()
}
